import React from 'react';
import { connect } from 'dva';
import { withRouter } from 'umi';
import styles from './index.less';

@connect(({ index }) => ({
  index,
}))
class Layout extends React.PureComponent {
  render() {
    const {
      location: { pathname, query },
    } = this.props;

    return <div className={styles.layout}>{this.props.children}</div>;
  }
}

export default withRouter(Layout);
